{include file="file:$theme_global/admin/_header.tpl"
hide_nav=true
}
<div class="box">
<h1>Install <span class="white">communit.as</span></h1>
{include file="file:$theme_global/admin/_messages.tpl"}
{if isset($success)}
{if isset($config_file)}
<textarea rows="20" cols="80">
{$config_file}
</textarea>
{/if}
{else} 

<form method="post" action="/" enctype="multipart/form-data">
		<h2>Default Database Settings</h2>
		<p>
		<label>Database Host</label>		
		<input type="text" value="{$db_host}" name="db_host" id="db_host" class="text"/>
	
		<label>Database Port</label>		
		<input type="text" value="{$db_port}" name="db_port" id="db_port" class="text"/>
	
		<label>Database Socket (You can probably leave this blank.)</label>		
		<input type="text" value="{$db_sock}" name="db_sock" id="db_sock" class="text"/>	
	
		<label>Database Name (must already exist)</label>		
		<input type="text" value="{$db_name}" name="db_name" id="db_name"/>
		
		<label>Database Username</label>		
		<input type="text" value="{$db_user}" name="db_user" id="db_user"/>
	
		<label>Database Password</label>		
		<input type="text" value="{$db_pass}" name="db_pass" id="db_pass"/>
		
	</p>


	
	<h2>Application Settings</h2>
	<p>	
			<label>Time zone</label>			
			{html_options name=app_timezone id=app_timezone options=$timezones selected=$app_timezone}
	</p>

	<h2>Admin User</h2>
	<p>
			<label>Username</label>
			<input type="text" value="{$admin_username}" name="admin_username" id="admin_username"/>
		
			<label>Email</label>
			<input type="text" value="{$admin_email}" name="admin_email" id="admin_email"/>					
		
	</p>

	<h2>Advanced Settings</h2>
	<fieldset id="advanced_settings">
	<p>(Defaults are probably okay.)</p>
	<p>	
		<label>Path to Zend Framework</label>
		<input type="text" size="75" value="{$app_zf_path}" name="app_zf_path" id="app_zf_path"/>
		
		<label>Path to Smarty</label>
		<input type="text" size="75" value="{$app_smarty_path}" name="app_smarty_path" id="app_smarty_path"/>					
		
		<label>Path to Asido</label>
		<input type="text" size="75" value="{$app_asido_path}" name="app_asido_path" id="app_asido_path"/>					
		
		<label>Temp Path</label>
		<input type="text" size="75" value="{$tmp_path}" name="tmp_path" id="tmp_path"/>					
				
		<label>Log Path</label>
		<input type="text" size="75" value="{$log_path}" name="log_path" id="log_path"/>	
	</p>
	</fieldset>
	<p><input type="submit" class="button" value="Save and Install"/></p>
			
	

</form>
{/if}
</div>
{include file="file:$theme_global/admin/_footer.tpl"}